class SmsTask {
  int id;
  String title;
  String smsTemplateTitle;
  String smsTemplateContent;
  String contactFilePath;
  String createdAt;

  SmsTask(
      {this.title = "",
      this.smsTemplateTitle = "",
      this.smsTemplateContent = "",
      this.contactFilePath = "",
      this.createdAt = ""});

  SmsTask.fromJsonMap(Map<String, dynamic> map)
      : id = map["id"],
        title = map["title"],
        smsTemplateTitle = map["sms_template_title"],
        smsTemplateContent = map["sms_template_content"],
        contactFilePath = map["contact_file_path"],
        createdAt = map["created_at"];

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = id;
    data['title'] = title;
    data['sms_template_title'] = smsTemplateTitle;
    data['sms_template_content'] = smsTemplateContent;
    data['contact_file_path'] = contactFilePath;
    data['created_at'] = createdAt;
    return data;
  }
}
